package gps.monitor.gpsbootstrap.jt808Server;

import gps.monitor.common.core.base.AbstractBootstrap;
import gps.monitor.common.core.base.AbstractServiceStarter;
import gps.monitor.jt808server.configuration.EnableJt808Service;
import gps.monitor.jt808server.startup.Jt808ServerStarter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author cyq
 * @date 2021/11/3
 * @desc talk is cheep,show me the code
 */
@EnableJt808Service
@SpringBootApplication
public class Jt808ServerBootstrap extends AbstractBootstrap {

    @Autowired(required = false)
    private Jt808ServerStarter starter;

    @Override
    public void loadCustomConfig() {

    }

    @Override
    public boolean startService() {
        return starter.start();
    }
}
